package com.zone.module_api.test.repository

import com.zone.api.model.ApiResponse
import com.zone.api.model.LoginReqBean
import com.zone.api.model.LoginResBean
import com.zone.api.model.UserInfoResBean
import com.zone.api.service.ApiService

class DataHttpRepository(private val apiService: ApiService) {
    private val TAG = "DataHttpRepository"

    suspend fun getLogin(): ApiResponse<LoginResBean> {
        val body = LoginReqBean("", "last")
        return apiService.reqLogin(body)
    }
    suspend fun getUserInfo(): ApiResponse<UserInfoResBean> {
        val body = LoginReqBean("", "last")
        return apiService.reqUserInfo(body)
    }
}